package com.enlorenz.core.exception;

/**
 * 异常代码
 * @author lcb
 */
public class ElzExpCode {
	//异常码
	private String expCode;
	//异常码描述
	private String expCodeDesp;
	//解决异常方法
	private String resolveExp;
	
	/**
	 * 创建新对象
	 * @param expCode 异常码
	 * @param expCodeDesp 异常码描述
	 */
	public ElzExpCode(String expCode, String expCodeDesp) {
		super();
		this.expCode = expCode;
		this.expCodeDesp = expCodeDesp;
	}
	
	/**
	 * 创建新对象
	 * @param expCode 异常码
	 * @param expCodeDesp 异常码描述
	 * @param resolveExp 异常码描述
	 */
	public ElzExpCode(String expCode, String expCodeDesp,String resolveExp) {
		super();
		this.expCode = expCode;
		this.expCodeDesp = expCodeDesp;
		this.resolveExp=resolveExp;
	}
	
	public String getExpCode() {
		return expCode;
	}
	public void setExpCode(String expCode) {
		this.expCode = expCode;
	}
	public String getExpCodeDesp() {
		return expCodeDesp;
	}
	public void setExpCodeDesp(String expCodeDesp) {
		this.expCodeDesp = expCodeDesp;
	}
	
	public String getResolveExp() {
		return resolveExp;
	}

	public void setResolveExp(String resolveExp) {
		this.resolveExp = resolveExp;
	}

	public String toString(){
		return expCode+":"+expCodeDesp+":"+resolveExp;
	}
}
